<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小案例</title>
    <style>
       .message {
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 100%;
            background-color: #c20c0c;
            color: #fff;
            font-size:5 px;
            text-align: center;
            line-height: 20px;
            position: absolute;
            left: 50px;
            top: -3px;
        }
        .eg{
            width: 300px;
            height: 300px;
            background-color: aqua;
            margin: 0 auto;
            text-align: center;
            position: relative;
            left: 0;
            top: 0;
        }
        img{
            width: 180px;
            height: 260px;
            object-fit: cover;
        }
    </style>
</head>

<body>
  
  <div class="eg">
    <img src="./images/1.jpg" alt="0">
    <div class="message">
        0
      </div>
  </div>

</body>

</html>